<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="<c:url value="/resources/core/js/jquery-3.1.1.min.js" />"></script>

<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
	window.onload = searchFile;
	function searchFile() {
		$("ul li:eq(2)").addClass("active");
		$("#buttonClick").click();
	}
</script>

</head>
<body class="container">
	<div>
		<div>
			<form action="" id="fm">
				<div>
					<div>
						&nbsp;&nbsp;&nbsp;&nbsp;
						<!-- <button type="button" class="btn btn-default" onclick="download()">下载</button> -->
						<button type="button" class="btn btn-default" onclick="delFile()">删除</button>
					</div>
					<table class="table table-striped">
						<thead>
							<tr>
								<th><input type="checkbox" onclick="selectAll()"
									id="SelectAll" /></th>
								<th>编号</th>
								<th>文件名称</th>
								<th>上传时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="diskFile" items="${diskFileList}"
								varStatus="status">
								<tr>
									<td><input type="checkbox" class="checkItem" /></td>
									<td>${status.index+1 }</td>
									<td>${diskFile.fileName }</td>
									<td>${diskFile.uploadDate }</td>
									<td style="display: none;" id="fileUuid">${diskFile.uuid }</td>
									<td>
										<button type="button" class="btn btn-info btn-xs"
											onclick="javascript:window.location.href='/disktalk/file/download?ids=${diskFile.uuid }'">
											下载</button>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</form>
		</div>
	</div>
</body>
</html>